/*
 * This file is part of the JPVideoPlayer package.
 * (c) NewPan <13246884282@163.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * Click https://github.com/newyjp
 * or http://www.jianshu.com/users/e2f2d779c022/latest_articles to contact me.
 */

#import "JPVideoPlayerWeiBoUnequalHeightCell.h"
#import "UIImageView+WebCache.h"

@interface JPVideoPlayerWeiBoUnequalHeightCell()

@end

@implementation JPVideoPlayerWeiBoUnequalHeightCell

- (void)setIndexPath:(NSIndexPath *)indexPath{
    _indexPath = indexPath;
    
    if (indexPath.row % 2) {
        [self.videoPlayView sd_setImageWithURL:[NSURL URLWithString:@"https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3279636440,1097157313&fm=27&gp=0.jpg"] placeholderImage:[UIImage imageNamed:@"placeholder1"] options:SDWebImageProgressiveDownload progress:nil completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
            
        }];
//        self.videoPlayView.image = [UIImage imageNamed:@"placeholder1"];
    }
    else{
        [self.videoPlayView sd_setImageWithURL:[NSURL URLWithString:@"https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=304470494,1009502993&fm=27&gp=0.jpg"] placeholderImage:[UIImage imageNamed:@"placeholder2"] options:SDWebImageProgressiveDownload progress:nil completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
            
        }];
//        self.videoPlayView.image = [UIImage imageNamed:@"placeholder2"];
    }
}

@end
